﻿using System;
using System.Collections.Generic;
using System.IO.Compression;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GzipManagerPro.IO.Helpers;

namespace GzipManagerPro.IO
{
    [Serializable]
    public partial class Archive
    {

        public const string Extension = ".xzip";
        public const string ExtensionFilter = "Archive Files(*.xzip)|*.xzip";
        public void AddDirectory(string path)
        {
            this.RootFolder.Folders.Add(Folder.FromPath(path));
        }

        public void AddFile(string path)
        {
            this.RootFolder.Files.Add(File.FromPath(path));
        }        
    }
}
